<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="Images/css1/css.css" rel="stylesheet" type="text/css">
</head>
<SCRIPT language=javascript>
<!--
var displayBar=true;
function switchBar(obj){
	if (displayBar)
	{
		parent.frame.cols="0,*";
		displayBar=false;
		obj.value="打开左边管理菜单";
	}
	else{
		parent.frame.cols="195,*";
		displayBar=true;
		obj.value="关闭左边管理菜单";
	}
}

function fullmenu(url){
	if (url==null) {url = "left.php";}
	parent.leftFrame.location = url;
}

//-->
</SCRIPT>  <?php
session_start();
if($_SESSION["user"]!=""){
	require_once('../Connections/agriculture.php'); 
                        mysql_select_db($database_agriculture, $agriculture);
                        $query_Recordset1 = "SELECT * FROM users WHERE user_name = '" . $user . "'";
                        $Recordset1 = mysql_query($query_Recordset1, $agriculture) or die(mysql_error());
                        $row_Recordset1 = mysql_fetch_assoc($Recordset1);
                        $totalRows_Recordset1 = mysql_num_rows($Recordset1); 
 ?>
 <style type="text/css">
                            <!--
                            .STYLE1 {font-size: 14px}
                            -->
                        </style>
                        <span class="STYLE1">登陆成功,欢迎您,<?php echo $_SESSION["user"]; ?></span>
                        </p>
                        <p>&nbsp;</p>
                        <table width="800" height="304" border="1" cellpadding="0" cellspacing="0">
                            <tr>
                                <td colspan="3"><div align="center" class="STYLE1">账户信息</div></td>
                            </tr>
                            <tr>
                                <td width="134" height="40"><div align="center" class="STYLE1"><a href="edit.php?type=user_pass">修改密码</a></div></td>
                                <td width="366" rowspan="5"><p class="STYLE1">ID:<?php echo $row_Recordset1['user_id'] + 1; ?></p>
                                    <p class="STYLE1">账号:<?php echo $row_Recordset1['user_name']; ?></p>
                                    <p class="STYLE1">密码:****</p>
                                    <p class="STYLE1">邮箱:<?php echo $row_Recordset1['user_email']; ?></p>
                                    <p class="STYLE1">电话:<?php echo $row_Recordset1['user_tel']; ?></p>
                                    <p class="STYLE1">注册时间:<?php echo $row_Recordset1['user_regtime']; ?></p></td>
                                <td width="366" rowspan="3"><div align="center"><img src="<?php echo $row_Recordset1['user_photo']; ?>" alt="" width="128" height="128" /></div></td>
                            </tr>
                            <tr>
                                <td height="45"><div align="center" class="STYLE1"><a href="edit.php?type=user_email">修改邮箱</a></div></td>
                            </tr>
                            <tr>
                                <td height="49"><div align="center" class="STYLE1"><a href="edit.php?type=user_tel">修改电话</a></div></td>
                            </tr>
                            <tr>
                                <td><div align="center" class="STYLE1"><a href="edit.php?type=user_photo">修改照片</a></div></td>
                                <td width="366">&nbsp;</td>
                            </tr>
                            <tr>
                                <td height="39"><div align="center" class="STYLE1"><a href="out.php">退出登陆</a></div></td>
                                <td width="366">&nbsp;</td>
                            </tr>
                        </table>
                        <?php
                    }
                    ?>
<body>

</body>
</html>
